# -*- ecoding: utf-8 -*-
# @Author: Wick
# @Time: 2024-02-24 21:07

class Person:
    """人类"""
    def __init__(self, name, weight):
        self.name = name
        self.weight = weight

    def __str__(self):
        return f'{self.name}的体重是{self.weight}'

    def run(self):
        self.weight -= 0.5

    def eat(self):
        self.weight += 1

xiao_ming = Person('小明', 85)
print(xiao_ming)
xiao_ming.run()
xiao_ming.eat()
print(xiao_ming)
